﻿@using System
@using Exceptionless.Core.Extensions
@inherits RazorSharpEmail.EmailTemplate<Exceptionless.Core.Mail.Models.EventNotificationModel>
@if (Model.IsNew) {
<text>
A new @if (Model.IsCritical) { <text>critical </text> }event has occurred in the "@Model.ProjectName" project.
</text>
} else if (Model.IsRegression) {
<text>
@if (Model.IsCritical) { <text>A critical</text> } else { <text>An</text> } event has regressed in the "@Model.ProjectName" project.
</text>
} else {
<text>
@if (Model.IsCritical) { <text>A critical</text> } else { <text>An</text> } event has reoccurred for the @Model.TotalOccurrences.ToOrdinal() time in the "@Model.ProjectName" project.
</text>
}
@if (!String.IsNullOrEmpty(Model.Message)) {
<text>

Message:
@Model.Message
</text>
}
@if (!String.IsNullOrEmpty(Model.Source)) {
<text>

Source:
@Model.Source
</text>
}
@if (!String.IsNullOrEmpty(Model.Url)) {
<text>

Source:
@Model.Url
</text>
}

View the event:
@Model.BaseUrl/event/@Model.Event.Id
